﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WebNetCorePhoneErp.Model;

namespace WebNetCorePhoneErp.IBLL
{
    /// <summary>
    /// 品牌-业务逻辑
    /// </summary>
    /// <remarks>
    /// 作者：王浩力
    /// 创建时间：2021-6-11 17:49:37 
    /// </remarks>
    public interface IBrandBusiness
    {
        /// <summary>
        /// 新增品牌
        /// </summary>
        /// <param name="brand"></param>
        /// <param name="userView"></param>
        /// <returns></returns>
        /// <remarks>
        /// 创建时间：2021-6-15 10:53:16
        /// 作者：王浩力
        /// </remarks>
        Task<Result> AddBrandAsync(Brand brand, UserView userView);

        /// <summary>
        /// 修改品牌
        /// </summary>
        /// <param name="brand"></param>
        /// <param name="userView"></param>
        /// <returns></returns>
        /// <remarks>
        /// 创建时间：2021-6-15 10:53:16
        /// 作者：王浩力
        /// </remarks>
        Task<Result> UpdateBrandAsync(Brand brand, UserView userView);

        /// <summary>
        /// 启用或禁用
        /// </summary>
        /// <param name="brand"></param>
        /// <param name="userView"></param>
        /// <returns></returns>
        /// <remarks>
        /// 创建时间：2021-6-15 10:53:16
        /// 作者：王浩力
        /// </remarks>
        Task<Result> UpdateStateBrandAsync(string id, UserView userView);
    }
}
